home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Object = "{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCTL.OCX"
- Object = "{BDC217C8-ED16-11CD-956C-0000C04E4C0A}#1.1#0"; "TABCTL32.OCX"
- Begin VB.Form frmTest
- BorderStyle = 1 'Fixed Single
- Caption = "TorchLight Info Class Test Program"
- ClientHeight = 6090
- ClientLeft = 45
- ClientTop = 330
- ClientWidth = 7320
- LinkTopic = "Form1"
- MaxButton = 0 'False
- ScaleHeight = 6090
- ScaleWidth = 7320
- StartUpPosition = 3 'Windows Default
- Begin VB.CommandButton cmdQuit
- Caption = "Quit"
- Height = 375
- Left = 5640
- TabIndex = 79
- Top = 5640
- Width = 1215
- End
- Begin VB.Timer timerKeyboard
- Interval = 100
- Left = 1200
- Top = 5520
- End
- Begin MSComctlLib.ImageList MouseClickImages
- Left = 3000
- Top = 5280
- _ExtentX = 1005
- _ExtentY = 1005
- BackColor = -2147483643
- ImageWidth = 32
- ImageHeight = 32
- MaskColor = 12632256
- _Version = 393216
- BeginProperty Images {2C247F25-8591-11D1-B16A-00C0F0283628}
- NumListImages = 4
- BeginProperty ListImage1 {2C247F27-8591-11D1-B16A-00C0F0283628}
- Picture = "frmTest.frx":0000
- Key = ""
- EndProperty
- BeginProperty ListImage2 {2C247F27-8591-11D1-B16A-00C0F0283628}
- Picture = "frmTest.frx":0452
- Key = ""
- EndProperty
- BeginProperty ListImage3 {2C247F27-8591-11D1-B16A-00C0F0283628}
- Picture = "frmTest.frx":08A4
- Key = ""
- EndProperty
- BeginProperty ListImage4 {2C247F27-8591-11D1-B16A-00C0F0283628}
- Picture = "frmTest.frx":0CF6
- Key = ""
- EndProperty
- EndProperty
- End
- Begin VB.Timer timerMouse
- Interval = 100
- Left = 720
- Top = 5520
- End
- Begin VB.Timer timerMemory
- Interval = 1000
- Left = 240
- Top = 5520
- End
- Begin TabDlg.SSTab SSTab1
- Height = 5445
- Left = 120
- TabIndex = 0
- Top = 120
- Width = 7125
- _ExtentX = 12568
- _ExtentY = 9604
- _Version = 393216
- Style = 1
- Tabs = 9
- TabsPerRow = 5
- TabHeight = 520
- TabCaption(0) = "About"
- TabPicture(0) = "frmTest.frx":1148
- Tab(0).ControlEnabled= -1 'True
- Tab(0).Control(0)= "lblAbout"
- Tab(0).Control(0).Enabled= 0 'False
- Tab(0).Control(1)= "Label1"
- Tab(0).Control(1).Enabled= 0 'False
- Tab(0).Control(2)= "Label2"
- Tab(0).Control(2).Enabled= 0 'False
- Tab(0).Control(3)= "Label3"
- Tab(0).Control(3).Enabled= 0 'False
- Tab(0).Control(4)= "Label4"
- Tab(0).Control(4).Enabled= 0 'False
- Tab(0).ControlCount= 5
- TabCaption(1) = "System Info"
- TabPicture(1) = "frmTest.frx":1164
- Tab(1).ControlEnabled= 0 'False
- Tab(1).Control(0)= "lblBootType"
- Tab(1).Control(0).Enabled= 0 'False
- Tab(1).Control(1)= "lblScreenRes"
- Tab(1).Control(1).Enabled= 0 'False
- Tab(1).Control(2)= "lblNumProcs"
- Tab(1).Control(2).Enabled= 0 'False
- Tab(1).Control(3)= "lblProcType"
- Tab(1).Control(3).Enabled= 0 'False
- Tab(1).Control(4)= "lblSysUserName"
- Tab(1).Control(4).Enabled= 0 'False
- Tab(1).Control(5)= "lblSysComputerName"
- Tab(1).Control(5).Enabled= 0 'False
- Tab(1).Control(6)= "lblNumMonitors"
- Tab(1).Control(6).Enabled= 0 'False
- Tab(1).Control(7)= "lblScreenSaverTimeout"
- Tab(1).Control(7).Enabled= 0 'False
- Tab(1).Control(8)= "chkSecurity"
- Tab(1).Control(8).Enabled= 0 'False
- Tab(1).Control(9)= "chkSlowMachine"
- Tab(1).Control(9).Enabled= 0 'False
- Tab(1).Control(10)= "chkShowSounds"
- Tab(1).Control(10).Enabled= 0 'False
- Tab(1).Control(11)= "chkFontSmoothing"
- Tab(1).Control(11).Enabled= 0 'False
- Tab(1).Control(12)= "chkScreenSaverActive"
- Tab(1).Control(12).Enabled= 0 'False
- Tab(1).Control(13)= "chkFullWindowDrag"
- Tab(1).Control(13).Enabled= 0 'False
- Tab(1).Control(14)= "chkSystemBeep"
- Tab(1).Control(14).Enabled= 0 'False
- Tab(1).ControlCount= 15
- TabCaption(2) = "Memory Info"
- TabPicture(2) = "frmTest.frx":1180
- Tab(2).ControlEnabled= 0 'False
- Tab(2).Control(0)= "lblMemPhysicalUsed"
- Tab(2).Control(0).Enabled= 0 'False
- Tab(2).Control(1)= "lblMemoryLoad"
- Tab(2).Control(1).Enabled= 0 'False
- Tab(2).Control(2)= "lblMemPhysicalAvail"
- Tab(2).Control(2).Enabled= 0 'False
- Tab(2).Control(3)= "lblMemPhysicalTotal"
- Tab(2).Control(3).Enabled= 0 'False
- Tab(2).Control(4)= "lblMemVirtualUsed"
- Tab(2).Control(4).Enabled= 0 'False
- Tab(2).Control(5)= "lblMemVirtualAvail"
- Tab(2).Control(5).Enabled= 0 'False
- Tab(2).Control(6)= "lblMemVirtualTotal"
- Tab(2).Control(6).Enabled= 0 'False
- Tab(2).Control(7)= "lblMemPageFileUsed"
- Tab(2).Control(7).Enabled= 0 'False
- Tab(2).Control(8)= "lblMemPageFileAvail"
- Tab(2).Control(8).Enabled= 0 'False
- Tab(2).Control(9)= "lblMemPageFileTotal"
- Tab(2).Control(9).Enabled= 0 'False
- Tab(2).ControlCount= 10
- TabCaption(3) = "File Info"
- TabPicture(3) = "frmTest.frx":119C
- Tab(3).ControlEnabled= 0 'False
- Tab(3).Control(0)= "lblCurrentDir"
- Tab(3).Control(0).Enabled= 0 'False
- Tab(3).Control(1)= "lblTempDir"
- Tab(3).Control(1).Enabled= 0 'False
- Tab(3).Control(2)= "lblSystemDir"
- Tab(3).Control(2).Enabled= 0 'False
- Tab(3).Control(3)= "lblWindowsDir"
- Tab(3).Control(3).Enabled= 0 'False
- Tab(3).Control(4)= "lblTempFileName"
- Tab(3).Control(4).Enabled= 0 'False
- Tab(3).Control(5)= "cmdNewTemp"
- Tab(3).Control(5).Enabled= 0 'False
- Tab(3).ControlCount= 6
- TabCaption(4) = "Network Info"
- TabPicture(4) = "frmTest.frx":11B8
- Tab(4).ControlEnabled= 0 'False
- Tab(4).Control(0)= "lblNetUserName"
- Tab(4).Control(0).Enabled= 0 'False
- Tab(4).Control(1)= "lblNetComputerName"
- Tab(4).Control(1).Enabled= 0 'False
- Tab(4).Control(2)= "chkNetworkPresent"
- Tab(4).Control(2).Enabled= 0 'False
- Tab(4).ControlCount= 3
- TabCaption(5) = "Mouse Info"
- TabPicture(5) = "frmTest.frx":11D4
- Tab(5).ControlEnabled= 0 'False
- Tab(5).Control(0)= "lblMousePos"
- Tab(5).Control(0).Enabled= 0 'False
- Tab(5).Control(1)= "lblDoubleClickRec"
- Tab(5).Control(1).Enabled= 0 'False
- Tab(5).Control(2)= "lblDragRec"
- Tab(5).Control(2).Enabled= 0 'False
- Tab(5).Control(3)= "lblDoubleClickTime"
- Tab(5).Control(3).Enabled= 0 'False
- Tab(5).Control(4)= "lblDoubleClickTest"
- Tab(5).Control(4).Enabled= 0 'False
- Tab(5).Control(5)= "lblMouseButtons"
- Tab(5).Control(5).Enabled= 0 'False
- Tab(5).Control(6)= "lblWheelScrollLines"
- Tab(5).Control(6).Enabled= 0 'False
- Tab(5).Control(7)= "lblDoublClickTimeLabel"
- Tab(5).Control(7).Enabled= 0 'False
- Tab(5).Control(8)= "lblDblClickRecSeparator"
- Tab(5).Control(8).Enabled= 0 'False
- Tab(5).Control(9)= "chkSwapButton"
- Tab(5).Control(9).Enabled= 0 'False
- Tab(5).Control(10)= "MouseClickPicture"
- Tab(5).Control(10).Enabled= 0 'False
- Tab(5).Control(11)= "chkMousePresent"
- Tab(5).Control(11).Enabled= 0 'False
- Tab(5).Control(12)= "chkWheelPresent"
- Tab(5).Control(12).Enabled= 0 'False
- Tab(5).Control(13)= "txtDblClickTime"
- Tab(5).Control(13).Enabled= 0 'False
- Tab(5).Control(14)= "txtDblClickRecX"
- Tab(5).Control(14).Enabled= 0 'False
- Tab(5).Control(15)= "txtDblClickRecY"
- Tab(5).Control(15).Enabled= 0 'False
- Tab(5).ControlCount= 16
- TabCaption(6) = "Keyboard Info"
- TabPicture(6) = "frmTest.frx":11F0
- Tab(6).ControlEnabled= 0 'False
- Tab(6).Control(0)= "lblKeyboard"
- Tab(6).Control(0).Enabled= 0 'False
- Tab(6).Control(1)= "lblKeyboardAsString"
- Tab(6).Control(1).Enabled= 0 'False
- Tab(6).Control(2)= "lblKeyboardSubType"
- Tab(6).Control(2).Enabled= 0 'False
- Tab(6).Control(3)= "lblTestBox"
- Tab(6).Control(3).Enabled= 0 'False
- Tab(6).Control(4)= "lblCaretBlinkTime"
- Tab(6).Control(4).Enabled= 0 'False
- Tab(6).Control(5)= "lblCaretPos"
- Tab(6).Control(5).Enabled= 0 'False
- Tab(6).Control(6)= "lblKeyboardDelay"
- Tab(6).Control(6).Enabled= 0 'False
- Tab(6).Control(7)= "lblDelayMore"
- Tab(6).Control(7).Enabled= 0 'False
- Tab(6).Control(8)= "lblDelayLess"
- Tab(6).Control(8).Enabled= 0 'False
- Tab(6).Control(9)= "lblKeyboardSpeed"
- Tab(6).Control(9).Enabled= 0 'False
- Tab(6).Control(10)= "lblRepeatMore"
- Tab(6).Control(10).Enabled= 0 'False
- Tab(6).Control(11)= "lblRepeatLess"
- Tab(6).Control(11).Enabled= 0 'False
- Tab(6).Control(12)= "lblBlinkLess"
- Tab(6).Control(12).Enabled= 0 'False
- Tab(6).Control(13)= "lblBlinkMore"
- Tab(6).Control(13).Enabled= 0 'False
- Tab(6).Control(14)= "txtCaretTestBox"
- Tab(6).Control(14).Enabled= 0 'False
- Tab(6).Control(15)= "sldKeyboardDelay"
- Tab(6).Control(15).Enabled= 0 'False
- Tab(6).Control(16)= "sldKeyboardSpeed"
- Tab(6).Control(16).Enabled= 0 'False
- Tab(6).Control(17)= "sldCaretBlinkSpeed"
- Tab(6).Control(17).Enabled= 0 'False
- Tab(6).ControlCount= 18
- TabCaption(7) = "Actions"
- TabPicture(7) = "frmTest.frx":120C
- Tab(7).ControlEnabled= 0 'False
- Tab(7).Control(0)= "lblNewGUID"
- Tab(7).Control(0).Enabled= 0 'False
- Tab(7).Control(1)= "cmdPlayExclamation"
- Tab(7).Control(1).Enabled= 0 'False
- Tab(7).Control(2)= "cmdPlayQuestion"
- Tab(7).Control(2).Enabled= 0 'False
- Tab(7).Control(3)= "cmdPlayAsterisk"
- Tab(7).Control(3).Enabled= 0 'False
- Tab(7).Control(4)= "cmdPlaySystem"
- Tab(7).Control(4).Enabled= 0 'False
- Tab(7).Control(5)= "cmdPlayOK"
- Tab(7).Control(5).Enabled= 0 'False
- Tab(7).Control(6)= "cmdPlayStop"
- Tab(7).Control(6).Enabled= 0 'False
- Tab(7).Control(7)= "cmdEnableStart"
- Tab(7).Control(7).Enabled= 0 'False
- Tab(7).Control(8)= "cmdDisableStart"
- Tab(7).Control(8).Enabled= 0 'False
- Tab(7).Control(9)= "cmdShowStart"
- Tab(7).Control(9).Enabled= 0 'False
- Tab(7).Control(10)= "cmdHideStart"
- Tab(7).Control(10).Enabled= 0 'False
- Tab(7).Control(11)= "cmdFormat"
- Tab(7).Control(11).Enabled= 0 'False
- Tab(7).Control(12)= "cmdDisableDesktop"
- Tab(7).Control(12).Enabled= 0 'False
- Tab(7).Control(13)= "cmdEnableDesktop"
- Tab(7).Control(13).Enabled= 0 'False
- Tab(7).Control(14)= "cmdMakeGUID"
- Tab(7).Control(14).Enabled= 0 'False
- Tab(7).ControlCount= 15
- TabCaption(8) = "Forms"
- TabPicture(8) = "frmTest.frx":1228
- Tab(8).ControlEnabled= 0 'False
- Tab(8).Control(0)= "cmdFlash"
- Tab(8).Control(0).Enabled= 0 'False
- Tab(8).Control(1)= "cmdMinimizedFlash"
- Tab(8).Control(1).Enabled= 0 'False
- Tab(8).Control(2)= "cmdDisableX"
- Tab(8).Control(2).Enabled= 0 'False
- Tab(8).ControlCount= 3
- Begin VB.CommandButton cmdDisableX
- Caption = "Disable X"
- Height = 255
- Left = -74520
- TabIndex = 87
- Top = 1320
- Width = 1095
- End
- Begin VB.CommandButton cmdMinimizedFlash
- Caption = "Minimize, then Flash"
- Height = 255
- Left = -72720
- TabIndex = 86
- Top = 1680
- Width = 1695
- End
- Begin VB.CommandButton cmdFlash
- Caption = "Flash Window"
- Height = 255
- Left = -72720
- TabIndex = 85
- Top = 1320
- Width = 1695
- End
- Begin VB.TextBox txtDblClickRecY
- Height = 285
- Left = -71880
- TabIndex = 83
- Top = 2040
- Width = 375
- End
- Begin VB.TextBox txtDblClickRecX
- Height = 285
- Left = -72600
- TabIndex = 82
- Top = 2040
- Width = 375
- End
- Begin VB.TextBox txtDblClickTime
- Height = 285
- Left = -72960
- TabIndex = 80
- Top = 1560
- Width = 855
- End
- Begin VB.CommandButton cmdMakeGUID
- Caption = "Generate GUID"
- Height = 255
- Left = -74640
- TabIndex = 78
- Top = 4860
- Width = 1335
- End
- Begin VB.CommandButton cmdEnableDesktop
- Caption = "Enable Desktop"
- Height = 255
- Left = -70080
- TabIndex = 76
- Top = 1740
- Width = 1455
- End
- Begin VB.CommandButton cmdDisableDesktop
- Caption = "Disable Desktop"
- Height = 255
- Left = -70080
- TabIndex = 75
- Top = 2100
- Width = 1455
- End
- Begin VB.CommandButton cmdFormat
- Caption = "Format A: Drive"
- Height = 255
- Left = -70080
- TabIndex = 74
- Top = 3240
- Width = 1455
- End
- Begin VB.CommandButton cmdHideStart
- Caption = "Hide Start Bar"
- Height = 255
- Left = -71880
- TabIndex = 73
- Top = 4620
- Width = 1455
- End
- Begin VB.CommandButton cmdShowStart
- Caption = "Show Start Bar"
- Height = 255
- Left = -71880
- TabIndex = 72
- Top = 4260
- Width = 1455
- End
- Begin VB.CommandButton cmdDisableStart
- Caption = "Disable Start Bar"
- Height = 255
- Left = -70320
- TabIndex = 71
- Top = 4620
- Width = 1455
- End
- Begin VB.CommandButton cmdEnableStart
- Caption = "Enable Start Bar"
- Height = 255
- Left = -70320
- TabIndex = 70
- Top = 4260
- Width = 1455
- End
- Begin VB.CheckBox chkSystemBeep
- Alignment = 1 'Right Justify
- Caption = "System Beep Enabled:"
- Height = 255
- Left = -71880
- TabIndex = 68
- Top = 3420
- Width = 2055
- End
- Begin VB.CheckBox chkFullWindowDrag
- Alignment = 1 'Right Justify
- Caption = "Full Window Drag:"
- Height = 255
- Left = -71880
- TabIndex = 67
- Top = 3060
- Width = 2055
- End
- Begin VB.CheckBox chkScreenSaverActive
- Alignment = 1 'Right Justify
- Caption = "Screen Saver Enabled:"
- Height = 255
- Left = -71400
- TabIndex = 66
- Top = 1620
- Width = 2055
- End
- Begin VB.CheckBox chkFontSmoothing
- Alignment = 1 'Right Justify
- Caption = "Font Smoothing:"
- Height = 255
- Left = -71400
- TabIndex = 64
- Top = 1980
- Width = 2055
- End
- Begin MSComctlLib.Slider sldCaretBlinkSpeed
- Height = 255
- Left = -70800
- TabIndex = 61
- Top = 2460
- Width = 1935
- _ExtentX = 3413
- _ExtentY = 450
- _Version = 393216
- LargeChange = 10
- Min = 50
- Max = 1000
- SelStart = 50
- TickFrequency = 50
- Value = 50
- End
- Begin VB.CommandButton cmdPlayStop
- Caption = "Play Stop Sound"
- Height = 255
- Left = -74520
- TabIndex = 60
- Top = 1620
- Width = 1935
- End
- Begin VB.CommandButton cmdPlayOK
- Caption = "Play OK Sound"
- Height = 255
- Left = -74520
- TabIndex = 59
- Top = 1980
- Width = 1935
- End
- Begin VB.CommandButton cmdPlaySystem
- Caption = "Play System Sound"
- Height = 255
- Left = -74520
- TabIndex = 58
- Top = 2340
- Width = 1935
- End
- Begin VB.CommandButton cmdPlayAsterisk
- Caption = "Play Asterisk Sound"
- Height = 255
- Left = -74520
- TabIndex = 57
- Top = 2700
- Width = 1935
- End
- Begin VB.CommandButton cmdPlayQuestion
- Caption = "Play Question Sound"
- Height = 255
- Left = -74520
- TabIndex = 56
- Top = 3060
- Width = 1935
- End
- Begin VB.CommandButton cmdPlayExclamation
- Caption = "Play Exclamation Sound"
- Height = 255
- Left = -74520
- TabIndex = 55
- Top = 3420
- Width = 1935
- End
- Begin MSComctlLib.Slider sldKeyboardSpeed
- Height = 255
- Left = -70800
- TabIndex = 48
- Top = 2940
- Width = 1935
- _ExtentX = 3413
- _ExtentY = 450
- _Version = 393216
- LargeChange = 3
- Max = 31
- TickFrequency = 3
- End
- Begin MSComctlLib.Slider sldKeyboardDelay
- Height = 255
- Left = -70800
- TabIndex = 47
- Top = 2700
- Width = 1935
- _ExtentX = 3413
- _ExtentY = 450
- _Version = 393216
- LargeChange = 1
- Max = 3
- End
- Begin VB.TextBox txtCaretTestBox
- Height = 1455
- Left = -74280
- MultiLine = -1 'True
- TabIndex = 43
- Top = 3780
- Width = 5775
- End
- Begin VB.CommandButton cmdNewTemp
- Caption = "Make New Temp File"
- Height = 255
- Left = -74280
- TabIndex = 42
- Top = 2340
- Width = 1695
- End
- Begin VB.CheckBox chkNetworkPresent
- Alignment = 1 'Right Justify
- Caption = "Network Present:"
- Height = 195
- Left = -74280
- TabIndex = 36
- Top = 1860
- Width = 1695
- End
- Begin VB.CheckBox chkWheelPresent
- Alignment = 1 'Right Justify
- Caption = "Mouse Wheel Present:"
- Height = 255
- Left = -71160
- TabIndex = 29
- Top = 1860
- Width = 1935
- End
- Begin VB.CheckBox chkMousePresent
- Alignment = 1 'Right Justify
- Caption = "Mouse Present:"
- Height = 255
- Left = -71160
- TabIndex = 28
- Top = 1620
- Width = 1935
- End
- Begin VB.PictureBox MouseClickPicture
- AutoSize = -1 'True
- BackColor = &H00FFFFFF&
- Height = 495
- Left = -71640
- ScaleHeight = 435
- ScaleWidth = 555
- TabIndex = 25
- Top = 3420
- Width = 615
- End
- Begin VB.CheckBox chkShowSounds
- Alignment = 1 'Right Justify
- Caption = "Show Sounds:"
- Height = 255
- Left = -74520
- TabIndex = 10
- Top = 4020
- Width = 1575
- End
- Begin VB.CheckBox chkSlowMachine
- Alignment = 1 'Right Justify
- Caption = "Slow Machine:"
- Height = 255
- Left = -74520
- TabIndex = 9
- Top = 3780
- Width = 1575
- End
- Begin VB.CheckBox chkSecurity
- Alignment = 1 'Right Justify
- Caption = "Security Present:"
- Height = 255
- Left = -74520
- TabIndex = 8
- Top = 3540
- Width = 1575
- End
- Begin VB.CheckBox chkSwapButton
- Alignment = 1 'Right Justify
- Caption = "Mouse Button Swapped:"
- Height = 255
- Left = -74430
- TabIndex = 1
- Top = 2820
- Width = 2175
- End
- Begin VB.Label Label4
- Alignment = 2 'Center
- Caption = "mknowles@ilovescience.com"
- Height = 375
- Left = 720
- TabIndex = 92
- Top = 4560
- Width = 5055
- End
- Begin VB.Label Label3
- Alignment = 2 'Center
- Caption = "Mike Knowles. 9/20/1999"
- Height = 375
- Left = 720
- TabIndex = 91
- Top = 4080
- Width = 5055
- End
- Begin VB.Label Label2
- Caption = $"frmTest.frx":1244
- Height = 735
- Left = 720
- TabIndex = 90
- Top = 3240
- Width = 4935
- End
- Begin VB.Label Label1
- Caption = $"frmTest.frx":12D4
- Height = 615
- Left = 720
- TabIndex = 89
- Top = 2400
- Width = 5055
- End
- Begin VB.Label lblAbout
- Caption = $"frmTest.frx":1361
- Height = 1095
- Left = 720
- TabIndex = 88
- Top = 1080
- Width = 5295
- End
- Begin VB.Label lblDblClickRecSeparator
- Caption = "X"
- Height = 255
- Left = -72120
- TabIndex = 84
- Top = 2100
- Width = 255
- End
- Begin VB.Label lblDoublClickTimeLabel
- Caption = "ms."
- Height = 255
- Left = -72000
- TabIndex = 81
- Top = 1620
- Width = 255
- End
- Begin VB.Label lblNewGUID
- AutoSize = -1 'True
- Caption = "Sample GUID:"
- Height = 195
- Left = -74520
- TabIndex = 77
- Top = 5220
- Width = 1020
- End
- Begin VB.Label lblWheelScrollLines
- AutoSize = -1 'True
- Caption = "Wheel Scroll Lines:"
- Height = 195
- Left = -74400
- TabIndex = 69
- Top = 3300
- Width = 1365
- End
- Begin VB.Label lblScreenSaverTimeout
- AutoSize = -1 'True
- Caption = "Screen Saver Timeout:"
- Height = 195
- Left = -71520
- TabIndex = 65
- Top = 2460
- Width = 1635
- End
- Begin VB.Label lblBlinkMore
- AutoSize = -1 'True
- Caption = "Longer"
- Height = 195
- Left = -68880
- TabIndex = 63
- Top = 2460
- Width = 495
- End
- Begin VB.Label lblBlinkLess
- AutoSize = -1 'True
- Caption = "Shorter"
- Height = 195
- Left = -71340
- TabIndex = 62
- Top = 2460
- Width = 510
- End
- Begin VB.Label lblRepeatLess
- AutoSize = -1 'True
- Caption = "Slower"
- Height = 195
- Left = -71340
- TabIndex = 54
- Top = 2940
- Width = 480
- End
- Begin VB.Label lblRepeatMore
- AutoSize = -1 'True
- Caption = "Faster"
- Height = 195
- Left = -68880
- TabIndex = 53
- Top = 2940
- Width = 435
- End
- Begin VB.Label lblKeyboardSpeed
- AutoSize = -1 'True
- Caption = "Keyboard Repeat Speed:"
- Height = 195
- Left = -73920
- TabIndex = 52
- Top = 2940
- Width = 1800
- End
- Begin VB.Label lblDelayLess
- AutoSize = -1 'True
- Caption = "Shorter"
- Height = 195
- Left = -71340
- TabIndex = 51
- Top = 2700
- Width = 510
- End
- Begin VB.Label lblDelayMore
- AutoSize = -1 'True
- Caption = "Longer"
- Height = 195
- Left = -68880
- TabIndex = 50
- Top = 2700
- Width = 495
- End
- Begin VB.Label lblKeyboardDelay
- AutoSize = -1 'True
- Caption = "Keyboard Repeat Delay:"
- Height = 195
- Left = -73920
- TabIndex = 49
- Top = 2700
- Width = 1740
- End
- Begin VB.Label lblCaretPos
- AutoSize = -1 'True
- Caption = "Caret Position:"
- Height = 195
- Left = -73920
- TabIndex = 46
- Top = 2220
- Width = 1020
- End
- Begin VB.Label lblCaretBlinkTime
- AutoSize = -1 'True
- Caption = "Caret Blink Time:"
- Height = 195
- Left = -73920
- TabIndex = 45
- Top = 2460
- Width = 1200
- End
- Begin VB.Label lblTestBox
- Caption = "Test Box for Caret Info:"
- Height = 255
- Left = -74280
- TabIndex = 44
- Top = 3540
- Width = 4095
- End
- Begin VB.Label lblTempFileName
- AutoSize = -1 'True
- Caption = "Sample Temporary File Name:"
- Height = 195
- Left = -74640
- TabIndex = 41
- Top = 2100
- Width = 2115
- End
- Begin VB.Label lblWindowsDir
- AutoSize = -1 'True
- Caption = "Windows Directory:"
- Height = 195
- Left = -74640
- TabIndex = 40
- Top = 1380
- Width = 1380
- End
- Begin VB.Label lblSystemDir
- AutoSize = -1 'True
- Caption = "System Directory:"
- Height = 195
- Left = -74640
- TabIndex = 39
- Top = 1620
- Width = 1230
- End
- Begin VB.Label lblTempDir
- AutoSize = -1 'True
- Caption = "Temporary Directory:"
- Height = 195
- Left = -74640
- TabIndex = 38
- Top = 1860
- Width = 1470
- End
- Begin VB.Label lblCurrentDir
- AutoSize = -1 'True
- Caption = "Current Directory:"
- Height = 195
- Left = -74640
- TabIndex = 37
- Top = 1140
- Width = 1230
- End
- Begin VB.Label lblNetComputerName
- AutoSize = -1 'True
- Caption = "Computer Name:"
- Height = 195
- Left = -74280
- TabIndex = 35
- Top = 1620
- Width = 1185
- End
- Begin VB.Label lblNetUserName
- AutoSize = -1 'True
- Caption = "User Name:"
- Height = 195
- Left = -74280
- TabIndex = 34
- Top = 1380
- Width = 840
- End
- Begin VB.Label lblKeyboardSubType
- AutoSize = -1 'True
- Caption = "Keyboard SubType:"
- Height = 195
- Left = -73920
- TabIndex = 33
- Top = 1980
- Width = 1410
- End
- Begin VB.Label lblKeyboardAsString
- AutoSize = -1 'True
- Caption = "Keyboard Type (String):"
- Height = 195
- Left = -73920
- TabIndex = 32
- Top = 1500
- Width = 1665
- End
- Begin VB.Label lblKeyboard
- AutoSize = -1 'True
- Caption = "Keyboard Type (Number):"
- Height = 195
- Left = -73920
- TabIndex = 31
- Top = 1740
- Width = 1815
- End
- Begin VB.Label lblMouseButtons
- AutoSize = -1 'True
- Caption = "Number of Mouse Buttons:"
- Height = 195
- Left = -71130
- TabIndex = 30
- Top = 2160
- Width = 1890
- End
- Begin VB.Label lblDoubleClickTest
- AutoSize = -1 'True
- Caption = "Double Click Test Box"
- Height = 195
- Left = -70920
- TabIndex = 27
- Top = 3540
- Width = 1575
- End
- Begin VB.Label lblDoubleClickTime
- AutoSize = -1 'True
- Caption = "Double Click Time: "
- Height = 195
- Left = -74400
- TabIndex = 26
- Top = 1620
- Width = 1380
- End
- Begin VB.Label lblDragRec
- Caption = "Drag Rectangle:"
- Height = 255
- Left = -74400
- TabIndex = 24
- Top = 2580
- Width = 2295
- End
- Begin VB.Label lblDoubleClickRec
- AutoSize = -1 'True
- Caption = "Double Click Rectangle: "
- Height = 195
- Left = -74400
- TabIndex = 23
- Top = 2100
- Width = 1770
- End
- Begin VB.Label lblMousePos
- AutoSize = -1 'True
- Caption = "Current Mouse Position:"
- Height = 195
- Left = -74400
- TabIndex = 22
- Top = 3060
- Width = 1680
- End
- Begin VB.Label lblMemPageFileTotal
- AutoSize = -1 'True
- Caption = "PageFile Memory Total:"
- Height = 195
- Left = -74520
- TabIndex = 21
- Top = 3540
- Width = 1665
- End
- Begin VB.Label lblMemPageFileAvail
- AutoSize = -1 'True
- Caption = "PageFile Memory Available:"
- Height = 195
- Left = -74520
- TabIndex = 20
- Top = 3300
- Width = 1950
- End
- Begin VB.Label lblMemPageFileUsed
- AutoSize = -1 'True
- Caption = "PageFile Memory Used:"
- Height = 195
- Left = -74520
- TabIndex = 19
- Top = 3060
- Width = 1680
- End
- Begin VB.Label lblMemVirtualTotal
- AutoSize = -1 'True
- Caption = "Virtual Memory Total:"
- Height = 195
- Left = -74520
- TabIndex = 18
- Top = 2820
- Width = 1485
- End
- Begin VB.Label lblMemVirtualAvail
- AutoSize = -1 'True
- Caption = "Virtual Memory Available:"
- Height = 195
- Left = -74520
- TabIndex = 17
- Top = 2580
- Width = 1770
- End
- Begin VB.Label lblMemVirtualUsed
- AutoSize = -1 'True
- Caption = "Virtual Memory Used:"
- Height = 195
- Left = -74520
- TabIndex = 16
- Top = 2340
- Width = 1500
- End
- Begin VB.Label lblMemPhysicalTotal
- AutoSize = -1 'True
- Caption = "Phyical Memory Total:"
- Height = 195
- Left = -74520
- TabIndex = 15
- Top = 2100
- Width = 1560
- End
- Begin VB.Label lblMemPhysicalAvail
- AutoSize = -1 'True
- Caption = "Phyical Memory Available:"
- Height = 195
- Left = -74520
- TabIndex = 14
- Top = 1860
- Width = 1845
- End
- Begin VB.Label lblMemoryLoad
- AutoSize = -1 'True
- Caption = "Memory Load:"
- Height = 195
- Left = -74520
- TabIndex = 13
- Top = 1380
- Width = 1005
- End
- Begin VB.Label lblMemPhysicalUsed
- AutoSize = -1 'True
- Caption = "Phyical Memory Used:"
- Height = 195
- Left = -74520
- TabIndex = 12
- Top = 1620
- Width = 1575
- End
- Begin VB.Label lblNumMonitors
- AutoSize = -1 'True
- Caption = "Number of Monitors:"
- Height = 195
- Left = -74520
- TabIndex = 11
- Top = 1980
- Width = 1425
- End
- Begin VB.Label lblSysComputerName
- AutoSize = -1 'True
- Caption = "Computer Name:"
- Height = 195
- Left = -74520
- TabIndex = 7
- Top = 2940
- Width = 1185
- End
- Begin VB.Label lblSysUserName
- AutoSize = -1 'True
- Caption = "User Name:"
- Height = 195
- Left = -74520
- TabIndex = 6
- Top = 2700
- Width = 840
- End
- Begin VB.Label lblProcType
- AutoSize = -1 'True
- Caption = "Processor Type (Number):"
- Height = 195
- Left = -74520
- TabIndex = 5
- Top = 2220
- Width = 1845
- End
- Begin VB.Label lblNumProcs
- AutoSize = -1 'True
- Caption = "Number of Processors:"
- Height = 195
- Left = -74520
- TabIndex = 4
- Top = 1740
- Width = 1605
- End
- Begin VB.Label lblScreenRes
- AutoSize = -1 'True
- Caption = "Screen Resolution:"
- Height = 195
- Left = -74520
- TabIndex = 3
- Top = 1500
- Width = 1350
- End
- Begin VB.Label lblBootType
- AutoSize = -1 'True
- Caption = "Boot Type:"
- Height = 195
- Left = -74520
- TabIndex = 2
- Top = 1260
- Width = 780
- End
- End
- Attribute VB_Name = "frmTest"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- 'Some beginning notes about this sample application.
- 'Note (0)
- ' 9/20/1999
- ' Please consider everything in here to be in flux. Everything here works on my machine,
- ' but I already have a list of (mostly minor) issues. Primarily the issues revolve around
- ' the fact that I have an NT machine and have only recently begun testing this code with
- ' a 95/98 machine.
- '
- ' If you see any problems, would like more explaination on something, think a feature should
- ' be added, or for any other reason, please email me.
- '
- ' I can be reached at mknowles@ilovescience.com
- '
- ' Once I get further along with this project, there will be an update page to see any
- ' changes available on http://www.ilovescience.com/torchlight ... don't expect a page
- ' to be there before 11/1/1999, though. :)
- '
- ' One last thing before I get started...
- '
- ' I love to comment. This may, for some, actually be cumbersome for them. If you find that
- ' it is harder to read through because of the notes, I suggest looking at one particular
- ' function at a time instead of the whole thing. For instance, if you look simply at the
- ' code and notes for the sub cmdFlash_Click, there isn't much by itself, it's just as a collection
- ' it seems large.
- '
- ' Good Luck and happy coding!
- '
- ' Mike Knowles
- '
- 'Note (1)
- ' You can easily hose yourself with this sample app. For instance, the mouse options are global
- ' to all of windows. This means that if you swap your mouse buttons in this app, you will be
- ' swapped for all of windows. Treat this program with care. It's not meant as a "Hose your
- ' friend" application, but the same effect can be made. Just don't go and hose yourself. :)
- 'Note (2)
- ' I have developed this habit, and I thought that documenting it here
- ' would be easier for me than changing it globally.
- '
- ' When assigning a value to a checkbox, you'll often see the notation:
- ' chkMyCheckBox.Value=Abs(SomeBooleanValue)
- '
- ' I add the .Value for readability (I'm not a huge fan of default
- ' properties :), but the Abs has thrown some people off.
- '
- ' The valid values of a checkbox are:
- ' Unchecked = 0
- ' Checked = 1
- ' Greyed Out = 2
- '
- ' The standard values for True and False are:
- ' False = 0
- ' True = -1
- '
- ' Thus, if I want a nice, clean, way to make sure True is
- ' checked and False is unchecked, I can take the absolute
- ' value of SomeBooleanValue and it will turn nicely into what I
- ' want.
- '
- ' For example, Abs(True) is the same as Abs(-1) which both
- ' equal 1 (which is checked), and Abs(False) is the same as
- ' Abs(0) which equals 0 (which is unchecked).
- '
- ' Additionally, when I take the value from a checkbox, I come
- ' into a similar issue. I solve this differently, though. Here is
- ' an example:
- '
- ' SomeBooleanValue = (chkMyCheckBox.Value = Checked)
- '
- ' This simply tests the value of the checkbox to see if it
- ' is the value "Checked". This comparison returns either
- ' a True or False, which is what the boolean variable wanted.
- '
- ' VB does a lot of things for the programmer, but I like to
- ' do some of it myself so I can come back later and can easily tell
- ' how the whole thing works.
- '
- 'Note (3)
- ' Unreferenced Note
- '
- 'Note (4)
- ' Not all of the functionality of the components are listed here, but most is.
- ' Feel free to look at each component (the Object Browser is an easy way) to see
- ' what methods and properties are available. If I haven't tested them to some
- ' degree, they won't be listed, so you can be (reasonably) sure that each ability
- ' has been tested to some level (usually on NT at the very least, but many on
- ' both NT and 95/98)
- '
- 'Note (5)
- ' Self Referencing Note (See Note (5))
- Option Explicit
- ' I tried to make this program API-less for those that are intimidated by them, but
- ' I couldn't make myself do any of the odd ways to get around using sleep. This is only
- ' used once (as of writing these comments) in the program, but I didn't want to loop.
- ' If you are unfamiliar with APIs (or for any other reason) feel free to ignore the next line.
- ' As it is of very limited use in this app. (Don't delete it, though! :)
- Private Declare Sub Sleep Lib "kernel32" (ByVal dwMilliseconds As Long)
- ' Each of the classes is separate, so you only need to create the
- ' ones you need.
- ' ***************************************************************************************
- ' *** NOTE: In order for the following declares to work, you need to go to
- ' *** Project->References and check the "TorchLightInfo" class.
- ' ***************************************************************************************
- Dim MouseInfo As TLMouseInfo
- Dim FileInfo As TLFileInfo
- Dim KeyboardInfo As TLKeyboardInfo
- Dim NetworkInfo As TLNetworkInfo
- Dim SystemInfo As TLSystemInfo
- Dim Actions As TLActions
- Dim MemoryInfo As TLMemoryInfo
- Dim FormStuff As TLFormStuff
- Dim StringFuncs As TLStringFuncs
- ' These variables are for other funcitonality in the sample program,
- ' so wouldn't be needed in your program.
- Private Initing As Boolean ' Is the program still in its Init phase?
- Private MouseDoubleClickItemNumber As Integer ' This is so we can do more than flip a image
- ' when the user is testing the double click box.
- ' This way, we can keep track and move
- ' to separate images.
- '*** Form_Load
- ' This event triggers all of the Init's for the sample. In most of the individual
- ' Init() subs, much of the functionality of the components are commented. Look in
- ' that section (immediately after the Form_Terminate sub) for more details.
- Private Sub Form_Load()
- ' Better code to do this instead of "Dim XXXXX as new XXXXXX"
- ' (Better yet only set it before it is needed and destroyed
- ' when not needed, but I'm not doing that there, so there.)
- Set MouseInfo = New TLMouseInfo
- Set FileInfo = New TLFileInfo
- Set KeyboardInfo = New TLKeyboardInfo
- Set NetworkInfo = New TLNetworkInfo
- Set SystemInfo = New TLSystemInfo
- Set Actions = New TLActions
- Set MemoryInfo = New TLMemoryInfo
- Set FormStuff = New TLFormStuff
- Set StringFuncs = New TLStringFuncs
-
- ' Below are the calls to the Init() subs that set everything
- ' up.
- Initing = True
- InitActions
- InitKeyboardInfo
- InitFileInfo
- InitSystemInfo
- InitMemoryInfo
- InitMouseInfo
- InitNetworkInfo
- Initing = False
- End Sub
- '*** Form_Terminate
- ' Get rid of our objects
- Private Sub Form_Terminate()
- Set MouseInfo = Nothing
- Set FileInfo = Nothing
- Set KeyboardInfo = Nothing
- Set NetworkInfo = Nothing
- Set SystemInfo = Nothing
- Set Actions = Nothing
- Set MemoryInfo = Nothing
- Set FormStuff = Nothing
- Set StringFuncs = Nothing
- End Sub
- '*** InitActions
- ' There isn't much here, since most of the actions are driven by buttons.
- ' We do want to create a sample GUID, though. See the appropriate button
- ' for more information on each of the actions (Including the GUID's)
- Private Sub InitActions()
- lblNewGUID.Caption = "Sample GUID: " + Actions.CreateGUIDAsString
- End Sub
- '*** InitFileInfo
- ' The below shows an example of all of the features of the TLFileInfo class.
- ' All of the output should show up on the "File Info" tab of the sample
- ' application.
- ' Since the TLFileInfo tab somtimes requires a file or directory, there are some
- ' buttons to allow for browsing.
- ' Some of the below are actions (so might belong in TLActions), but they seemed
- ' to fit in this component instead.
- Private Sub InitFileInfo()
- Dim NewTempFile As String
-
- '*** CurrentDirectory
- ' Property
- ' Read/Write
- '
- ' This simply returns the current directory. If the user changes the
- ' directory in, say, a shortcut, this would change.
- '
- ' Changes to this directory only last until the application exits
- lblCurrentDir.Caption = "Current Directory: " + FileInfo.CurrentDirectory
- '*** TempDirPath
- ' Property
- ' Read Only
- '
- ' This returns the path to the temporary directory as set by Windows.
- ' To be a good and proper app, you should use this directory to store
- ' any temp files you may need to create.
- '
- lblTempDir.Caption = "Temporary Directory: " + FileInfo.TempDirPath
- '*** SystemDirectory
- ' Property
- ' Read Only
- '
- ' This will tell you where the windows\system (or winnt\system32 or ...)
- ' directory is. Any system-wide dll's you want to install should
- ' be placed here.
- lblSystemDir.Caption = "System Directory: " + FileInfo.SystemDirectory
- '*** WindowsDirectory
- ' Property
- ' Read Only
- '
- ' This is where windows (or winnt or ...) directory is.
- lblWindowsDir.Caption = "Windows Directory: " + FileInfo.WindowsDirectory
- '*** GetTempFile
- ' Method
- ' Parameters:
- ' path (optional)
- ' This is the path to the file to be created. If you
- ' leave it off, it will create it in the system temp
- ' directory.
- ' prefix (optional)
- ' any few characters that will be a prefix to the file.
- ' if you leave it blank, "tmp" will be added. All files
- ' created like this would look like "tmpXXXX.tmp".
- ' The extension will always be .tmp using this method.
- '
- ' This returns the path and filename of a temporary file that is created
- ' for your use. It will be located in the temporary folder, and is
- ' guarenteed to be unique. This also creates the file (to make sure no one
- ' else makes the file before we do. In this case, I don't want the file,
- ' only the name, so immediately kill the file. If you want to use the
- ' file, you can immediately open it.
- NewTempFile = FileInfo.GetTempFile
- lblTempFileName.Caption = "Sample Temporary File Name: " + NewTempFile
- Kill NewTempFile
- End Sub
- '*** InitKeyboardInfo
- ' The TLKeyboardInfo component allows access to see various Keyboard info and
- ' caret info (that blinky thing that is in the text boxes as you type.)
- ' Samples of all of this are on this demo app under the "Keyboard Info" tab.
- Private Sub InitKeyboardInfo()
- '*** CaretPosX, CaretPosY, CaretPos
- ' Property
- ' Read/Write
- '
- ' These will tell you where the caret is currently located. CaretPosX and CaretPosY
- ' both set or return their appropriate X or Y value of the position. Using just
- ' CaretPos you can get back (or set) a Point object that contains both an x and a y
- ' value. This way you can set the location at once instead of making two calls.
- '
- ' Note: If you use the CaretPos property instead, you can access just the x or y as
- ' needed by calling CaretPos.x or CaretPos.y . These are equivalent to CaretPosX
- ' and CaretPosY respectively.
- lblCaretPos.Caption = "Caret Position: " + CStr(KeyboardInfo.CaretPosx) + ", " + CStr(KeyboardInfo.CaretPosy)
- '*** CaretBlinkTime
- ' Property
- ' Read/Write
- '
- ' How long does it take (in milliseconds) to blink. I've tried values up to 5000 with
- ' no ill effects (other than making the blinking really annoying). The sample here
- ' limits the change to 50-1000, but you could try other values.
- lblCaretBlinkTime.Caption = "Caret Blink Time: " + CStr(KeyboardInfo.CaretBlinkTime) + " ms"
- sldCaretBlinkSpeed.Value = KeyboardInfo.CaretBlinkTime
- '*** KeyboardType, KeyboardTypeAsString, KeyboardSubType
- ' Properties
- ' Read Only
- '
- ' These three functions all return what kind of keyboard the user is using.
- ' KeyBoardSubType is a number that is determined by the keyboard manufacturer, and
- ' is usually 0. The KeyboardType and KeyboardTypeAsString both look at the same
- ' value (KeyboardType) but KeyboardTypeAsString returns a human readable string
- ' instead of a number.
- lblKeyboard.Caption = "Keyboard Type (Number): " + CStr(KeyboardInfo.KeyboardType)
- lblKeyboardAsString.Caption = "Keyboard Type (String): " + KeyboardInfo.KeyboardTypeAsString
- lblKeyboardSubType.Caption = "Keyboard SubType: " + CStr(KeyboardInfo.KeyboardSubType)
- '*** KeyboardRepeatDelay, KeyboardRepeatRate
- ' Properties
- ' Read/Write
- '
- ' These properties read or change the typematic rates of the keyboard. If you were to hold
- ' down a key, how long does it take to start repeating? (KeyboardRepeatDelay) Once you start
- ' repeating, how fast are characters going to be repeated? (KeyboardRepeatRate)
- lblKeyboardDelay.Caption = "Keyboard Repeat Delay: " + CStr(KeyboardInfo.KeyboardRepeatDelay)
- lblKeyboardSpeed.Caption = "Keyboard Repeat Speed: " + CStr(KeyboardInfo.KeyboardRepeatRate)
- sldKeyboardDelay.Value = KeyboardInfo.KeyboardRepeatDelay
- sldKeyboardSpeed.Value = KeyboardInfo.KeyboardRepeatRate
- End Sub
- '*** InitMemoryInfo
- ' This demo allows you to see all of the TLMemoryInfo object's abilities.
- ' Most of the properties are very similar, so the comments regarding them
- ' are lumped together.
- ' When returning an amount of memory (available, used, whatever) the values
- ' are returned in bytes. It is probably useful to divide this by 1024
- ' (or 1024*1024) to get a more useful number (in kilobytes or megabytes)
- Private Sub InitMemoryInfo()
- '*** MemoryLoad
- ' Property
- ' Read Only
- '
- ' This is a number from 1 to 100 that approximates the load on the
- ' system memory. It is generated by windows, so I don't know all of the
- ' math it uses. Overall it seems to be a fair indication of system memory
- ' load. This is not, however, a good indication of percent memory usage.
- ' That can be determined by (UsedMemory)/(TotalMemory). This number should
- ' generally be zero unless there is a real load on the memory. The system just
- ' sitting around isn't much of a load. Get a memory tester and then watch
- ' this number.
- '
- lblMemoryLoad.Caption = "Approx. Memory Load: " + CStr(MemoryInfo.MemoryLoad)
- '*** AvailPhysical, UsedPhysical, TotalPhysical
- ' Properties
- ' Read Only
- '
- ' All of the physical memory available to the machine.
- '
- ' Note: If you use Windows NT's ability to limit the physical memory
- ' accessable to the system, the adjusted value will be shown here.
- lblMemPhysicalAvail.Caption = "Physical Memory Available: " + CStr(MemoryInfo.AvailPhysical) + " bytes"
- lblMemPhysicalUsed.Caption = "Physical Memory Used: " + CStr(MemoryInfo.UsedPhysical) + " bytes"
- lblMemPhysicalTotal.Caption = "Physical Memory Total: " + CStr(MemoryInfo.TotalPhysical) + " bytes"
- '*** AvailVirtual, UsedVirtual, TotalPhysical
- ' Properties
- ' Read Only
- '
- ' Virtual memory is the total memory that Windows will tell an application
- ' it has available. This is usually an obnoxiously large number. Used
- ' Virtual is probably the only property here that has practical uses (which
- ' is all of the memory used by the system)
- '
- ' Note: This includes *all* memory, whereas some (Windows NT Taskman, for
- ' instance) report a lower number (it looks like it is reporting memory
- ' used by User mode processes, but I haven't verified that.)
- lblMemVirtualUsed.Caption = "Virtual Memory Used: " + CStr(MemoryInfo.UsedVirtual) + " bytes"
- lblMemVirtualAvail.Caption = "Virtual Memory Availalble: " + CStr(MemoryInfo.AvailVirtual) + " bytes"
- lblMemVirtualTotal.Caption = "Virtual Memory Total: " + CStr(MemoryInfo.TotalVirtual) + " bytes"
- '*** AvailPageFile, UsedPageFile, TotalPageFile
- ' Properties
- ' Read Only
- '
- ' The size and usage of the Page File. This is also a decent indication
- ' of overall memory load.
- '
- lblMemPageFileUsed.Caption = "Page File Memory Used: " + CStr(MemoryInfo.UsedPageFile) + " bytes"
- lblMemPageFileAvail.Caption = "Page File Memory Availalble: " + CStr(MemoryInfo.AvailPageFile) + " bytes"
- lblMemPageFileTotal.Caption = "Page File Memory Total: " + CStr(MemoryInfo.TotalPageFile) + " bytes"
- End Sub
- '*** InitMouseInfo
- ' Look under the "Mouse Info" tab to see the properties available from the TLMouseInfo
- ' object.
- Private Sub InitMouseInfo()
- '*** MouseX, MouseY, MousePos
- ' Properties
- ' Read/Write
- '
- ' The current location of the mouse, in coordinates. The top-left of the
- ' screen is 0,0.
- '
- ' Like the Caret position, the MousePos property returns a Point type. This
- ' allows you to set the position of the mouse anywhere with only one call.
- ' Additionally, MousePos.x and MousePos.y are equivalent to MouseX and MouseY,
- ' respectively.
- lblMousePos.Caption = "Current Mouse Position: " + CStr(MouseInfo.MouseX) + ", " + CStr(MouseInfo.MouseY)
- '*** MouseButtonsSwapped
- ' Property
- ' Read/Write
- '
- ' This will return a True if the current mouse configuration include the
- ' mouse buttons being swapped.
- '
- ' If you change this value, be aware that the mouse is a global object, so
- ' changes to it will affect the mouse everywhere.
- '
- ' See note (2) about my habit of using Abs()
- ' See note (1) about being careful with properties like this one.
- chkSwapButton.Value = Abs(MouseInfo.MouseButtonsSwapped)
-
- '*** DoubleClickRecWidth, DoubleClickRecHeight
- ' Properties
- ' Read/Write
- '
- ' There is a small (virtual) rectangle that always follows the mouse arround. When you double click
- ' sometimes there is a small amount of mouse movement between the clicks. This rectangle is to
- ' compensate for this by allowing a small amount of "slop" space. The mouse can slide as many pixels
- ' right or left (DoubleClickRecWidth) or up and down (DoubleClickRecHeight) as these properties
- ' are set to.
- '
- ' There is, generally, very little need for these, but my grandfather had a really bugger of a time
- ' double clicking - his hand was , and was getting very frustrated with his computer. The mouse control panel
- ' didn't let me fix it, so I did it the hard way. :)
- txtDblClickRecX.Text = MouseInfo.DoubleClickRecWidth
- txtDblClickRecY.Text = MouseInfo.DoubleClickRecHeight
-
- '*** DragRecWidth, DragRecHeight
- ' Properties
- ' Read Only (for now)
- '
- ' Similar to the Double Click rectangle above, there is a certain amount of movement that the mouse
- ' needs to move for the drag functionality to kick in. (For instance, when moving a file in
- ' explorer)
- ' In this version this is a read only rectangle, but is already on the to-do list to update it to
- ' read/write.
- lblDragRec.Caption = "Drag Rectangle: " + CStr(MouseInfo.DragRecWidth) + "x" + CStr(MouseInfo.DragRecHeight)
- '*** DoubleClickTime
- ' Property
- ' Read/Write
- '
- ' Similar to the mouse control panel, this allows you to adjust the amount of time allowed
- ' while still triggering a double click message (as opposed to two single click messages)
- txtDblClickTime.Text = MouseInfo.DoubleClickTime
- '*** NumMouseButtons
- ' Property
- ' Read Only
- '
- ' The number of buttons on the active mouse. Note that the Microsoft (and other's) wheel-mouse
- ' and other variant mouses (mice?) have a third button since you can "click" the wheel in
- ' addition to rolling it. If you want to check for the number of "standard" buttons, check
- ' to see if there is a wheel present and subtract a button from this if there is a wheel.
- lblMouseButtons.Caption = "Number of Mouse Buttons: " + CStr(MouseInfo.NumMouseButtons)
- '*** MouseWheelPresent
- ' Property
- ' Read Only
- '
- ' Returns true if the system detects a Wheel Mouse (some off-brand mouses (mice? I'll never
- ' figure this one out) may not return that there is a wheel, but most (only one so far didn't)
- ' did.
- chkWheelPresent.Value = Abs(MouseInfo.MouseWheelPresent)
- '*** MouseWheelPresent
- ' Property
- ' Read Only (for now)
- '
- ' When you scroll the mouse wheel down (or up) it is the same as hitting the down (or up) scroll
- ' arrows a certain number of times. This value determines how many times that is. You could
- ' use this to 'supercharge' your wheel, or slow it down.
- lblWheelScrollLines.Caption = "Wheel Scroll Lines: " + CStr(MouseInfo.WheelScrollLines)
- '*** MouseWheelPresent
- ' Property
- ' Read Only
- '
- ' Is a mouse there? This should be used to decide if you are going to act differently when a
- ' mouse is missing, but few (none?) of the programs I use seem to check. (Yes, I sometimes run
- ' without a mouse... long story). You could also use it as a diagnostic check and/or a way to
- ' harass those of us that don't always use mouses (meese?) ;)
- chkMousePresent.Value = Abs(MouseInfo.MousePresent)
- ' This is simply for the double click test, and doesn't directly show any of the features of this class.
- MouseDoubleClickItemNumber = 1
- MouseClickPicture.Picture = MouseClickImages.ListImages(MouseDoubleClickItemNumber).Picture
- End Sub
- '*** InitNetworkInfo
- ' One of the most underprogrammed components of this set. Right now, it does little more than the
- ' SystemInfo component, but will soon have all the functionality of the network control panel (as
- ' much as practical, anyway) and more.
- ' All of the output should show up on the "Network Info" tab of the sample
- ' application.
- Private Sub InitNetworkInfo()
- '*** UserName
- ' Property
- ' Read Only
- '
- ' This returns the name of the currently logged in user.
- ' The ability to do this is also in the SystemInfo component, so if this is
- ' all you need, you don't need to package this dll. This is also true of the computer
- ' name.
- lblNetUserName.Caption = "User Name: " + NetworkInfo.UserName
- '*** ComputerName
- ' Property
- ' Read Only (for now)
- '
- ' This returns the name local machine.
- ' The ability to do this is also in the SystemInfo component, so if this is
- ' all you need, you don't need to package this dll. This is also true of the user
- ' name.
- lblNetComputerName.Caption = "Computer Name: " + NetworkInfo.ComputerName
- '*** NetworkPresent
- ' Property
- ' Read Only
- '
- ' Simply checks to make sure there is a network. You'll need to use other properties
- ' to verify protocols, etc. (not currently available) but this is a quick and easy check.
- chkNetworkPresent.Value = Abs(NetworkInfo.NetworkEnabled)
- End Sub
- '*** InitSystemInfo
- ' The below shows an example of all of the features of the SystemInfo class.
- ' All of the output should show up on the "System Info" tab of the sample
- ' application.
- Private Sub InitSystemInfo()
- Dim BootTypeMsg As String
- '*** BootType
- ' Property
- ' Read Only
- '
- ' How was this machine booted?
- ' This allows us to find out how the machine was booted.
- ' If you don't want to run if the user booted into safe mode,
- ' you can simply check here.
- Select Case SystemInfo.BootType
- Case TLBoot_Normal:
- BootTypeMsg = "Normal"
- Case TLBoot_SafeMode:
- BootTypeMsg = "Safe Mode"
- Case TLBoot_SafeModeNetwork:
- BootTypeMsg = "Safe Mode with Network"
- Case Else ' We should never get this, but just in case.
- BootTypeMsg = "Unknown"
- End Select
- lblBootType.Caption = "Boot Type: " + BootTypeMsg
- '*** ScreenWidth, ScreenHeight
- ' Properties
- ' Read Only
- '
- ' What is the screen resolution?
- ' Using both of these properties, you can easily find the size of
- ' the screen in order to optimize the view for your user.
- lblScreenRes.Caption = "Screen Resolution: " + CStr(SystemInfo.ScreenWidth) + "x" + CStr(SystemInfo.ScreenHeight)
- '*** NumProcessors.
- ' Property
- ' Read Only
- ' How many processors are on the system.
- lblNumProcs.Caption = "Number of Processors: " + CStr(SystemInfo.NumProcessors)
- '*** ProcessorType
- ' Properties
- ' Read Only
- '
- ' ProcessorType (and soon ProcessorTypeAsString) tell you what kind of processor
- ' you are running with. The first is easier to compare with (since it is
- ' a number, and can be compared with using the TLProcTypes list) but
- ' if you are simply displaying it, say for a diagnostic screen, ProcessorTypeAsString
- ' will come pre-formatted with the name of the processor.
- lblProcType.Caption = "Processor Type (Number): " + CStr(SystemInfo.ProcessorType)
- '*** UserName, ComputerName
- ' Properties
- ' Read Only
- '
- ' These properties are available both from the SystemInfo object and the
- ' NetworkInfo object. That way if you only need information from one of the
- ' objects you don't need to create both objects just to get one of these.
- lblSysComputerName.Caption = "Computer Name: " + SystemInfo.ComputerName
- lblSysUserName.Caption = "User Name: " + SystemInfo.UserName
- '*** SecurityPresent
- ' Property
- ' Read Only
- '
- ' This is simply if windows feels that there is security present.
- ' (I.e. if, when the user logged on, a server of some kind verified them)
- '
- ' See Note (2) about the Abs() if it seems odd.
- chkSecurity.Value = Abs(SystemInfo.SecurityPresent)
- '*** SlowMachine.
- ' Property
- ' Read Only
- '
- ' This is whether windows feels it is running on a slow machine.
- ' I've still be yet to determine when it feels this way, so I can't
- ' yet give you requirements as to when this is the case, but this would
- ' give you a quick ball-park at least.
- '
- ' See Note (2) about the Abs() if it seems odd.
- chkSlowMachine.Value = Abs(SystemInfo.SlowMachine)
- '*** ShowSounds
- ' Property
- ' Read Only
- '
- ' Did the user enable Accessability Options and ask that sounds
- ' offer some kind of visual clue? This is a good way to easily
- ' make your application more friendly to users who turn these
- ' options on.
- '
- ' Note: This property can be changed to allow you to create a
- ' program that enables this option. Please do so only if needed,
- ' as this is a global, system change.
- chkShowSounds.Value = Abs(SystemInfo.ShowSounds)
- '*** NumMonitors
- ' Property
- ' Read Only
- '
- ' How many monitors are configured on the system. This obviously only
- ' has significance on Windows98 and Win2000 machines.
- lblNumMonitors.Caption = "Number of Monitors: " + CStr(SystemInfo.NumMonitors)
- '*** FontSmoothing
- ' Property
- ' Read/Write
- '
- ' This returns whether the font smoothing is enabled (under the "Plus!" tab in the
- ' display control panel) Sometimes it seems to take a while for windows to notice the
- ' changes here. I'm still looking for a way to have windows notice it immediately.
-
- chkFontSmoothing.Value = Abs(SystemInfo.FontSmoothing)
- '*** FullWindowDrag
- ' Property
- ' Read/Write
- '
- ' This returns whether full window drag is enabled. Like FontSmoothing, windows
- ' doesn't seem to always notice it right away. Still looking for a way to get this
- ' to change immediately.
- chkFullWindowDrag.Value = Abs(SystemInfo.FullWindowDrag)
- '*** ScreenSaverTimeout
- ' Property
- ' Read/Write
- '
- ' How long (in seconds) does the computer wait before enabling the screen saver?
- ' This demo doesn't provide a way to change this value, but it could easily be added.
- lblScreenSaverTimeout.Caption = "Screen Saver Timeout: " + CStr(SystemInfo.ScreenSaverTimeout) + " sec"
- '*** ScreenSaverActive
- ' Property
- ' Read/Write
- '
- ' Is the screen saver enabled? This returns true if the screen saver is enabled, regardless
- ' of whether it is currently running, simply if there is one that can run.
- chkScreenSaverActive.Value = Abs(SystemInfo.ScreenSaverActive)
- '*** SystemBeepEnabled
- ' Property
- ' Read/Write
- '
- ' Probably only of significance to NT machines, but this returns whether the system beep is
- ' enabled (the annoying 80's sounding beep from the computer speaker) when the computer
- ' wants to alert the operator.
- chkSystemBeep.Value = Abs(SystemInfo.SystemBeepEnabled)
- '*** ScreenSaverRunning
- ' Property
- ' Read Only (for now)
- ' Although there is no code in the demo, below is some commented sample code showing an
- ' easy way to see if the screen saver is running (and, therefore, there is a good chance that
- ' there isn't user nearby to hear you scream)
- ' If SystemInfo.ScreenSaverRunning Then
- ' ' don't display messagebox or whatever
- ' Else
- ' ' msgbox "HEY!!!!!"
- ' End If
- End Sub
- '**********************************************************************
- ' The following code are for different actions that the components can
- ' do for you. Most are not related to things set up during the Init()
- ' subs, so each sub here will provide a description of the property
- ' or method in the component.
- '*** EnableDesktop
- ' Method
- ' Parameters:
- ' EnableTheDesktop
- ' This Boolean value sets whether the desktop should
- ' be enabled (True) or disabled (False).
- ' Note: most of the machine becomes unusable when
- ' the desktop is disabled. This demo automatically
- ' re-enables the desktop after a short pause.
- Private Sub cmdDisableDesktop_Click()
- MsgBox "Desktop will be automatically restored in five seconds."
- Actions.EnableDesktop False
- Sleep 5000
- Actions.EnableDesktop True
- MsgBox "Desktop was automatically restored."
- End Sub
- Private Sub cmdEnableDesktop_Click()
- Actions.EnableDesktop True
- End Sub
- '*** EnableStartBar
- ' Method
- ' Parameters:
- ' EnableStartBar
- ' This Boolean value sets whether the StartBar (Task Bar)
- ' should be enabled (True) or disabled (False).
- ' See also Actions.ShowStartBar()
- Private Sub cmdDisableStart_Click()
- Actions.EnableStartBar False
- End Sub
- Private Sub cmdEnableStart_Click()
- Actions.EnableStartBar True
- End Sub
- '*** ShowStartBar
- ' Method
- ' Parameters:
- ' ShowStartBar
- ' Boolean value to show, or hide, the StartBar (Task Bar)
- Private Sub cmdHideStart_Click()
- Actions.ShowStartBar False
- End Sub
- Private Sub cmdShowStart_Click()
- Actions.ShowStartBar True
- End Sub
- '*** DisableX
- ' Method
- ' Parameters:
- ' FormToDisable
- ' Passing a form to this method will disable the X in the
- ' form without removing the minimize/maximize buttons.
- ' I haven't found a way of reversing this yet, so it remains
- ' a one-way deal for now.
- ' (Which shouldn't affect most people, you either want an X,
- ' or you don't... I still want to be able to go back anyway :)
- Private Sub cmdDisableX_Click()
- FormStuff.DisableX Me
- cmdDisableX.Enabled = False
- End Sub
- '*** FlashMe
- ' Method
- ' Parameters:
- ' FormToFlash
- ' Passing a form to this will "Flash" the form. This
- ' will invert the caption, even if it is minimized (see
- ' the second sub here) in order to get the user's attention.
- Private Sub cmdFlash_Click()
- FormStuff.FlashMe Me
- End Sub
- Private Sub cmdMinimizedFlash_Click()
- Me.WindowState = vbMinimized
- FormStuff.FlashMe Me
- End Sub
- '*** FormatDrive
- ' Method
- ' Parameters:
- ' DriveLetter
- ' A string that says what drive you want to
- ' format.
- ' FormatOptions
- ' A TLFormatOptions variable that describes any options that
- ' you want turned on.
- ' Note: This method merely pops up the Format Disk dialog, so any options
- ' that you specify can be overridden by the user.
- Private Sub cmdFormat_Click()
- Actions.FormatDrive "A", TLFormat_Full
- End Sub
- '*** CreateGUID, CreateGUIDAsString
- ' Method
- ' Parameters:
- ' None
- ' These two methods will return a new GUID whenever you need one. These
- ' values can be assumed to be unique across all uses. Depending on your
- ' desired use of them, you can get the value returned as a byte array
- ' (CreateGUID) or as a string (CreateGUIDAsString). There isn't a
- ' sample of CreateGUID here, since it doesn't display as well.
- Private Sub cmdMakeGUID_Click()
- lblNewGUID.Caption = "Sample GUID: " + Actions.CreateGUIDAsString
- End Sub
- '*** MouseButtonsSwapped
- ' Property
- ' Read/Write
- ' This property is desribed also in the InitMouseInfo() sub. The below
- ' example shows how to swap the buttons. We pop up a message box to confirm
- ' that you really want to change them, since it can really goof you up if you
- ' aren't expecting it.
- ' See Note (2) about my use of Abs()
- ' See Note (1) about doing bad things to yourself on accident
- Private Sub chkSwapButton_Click()
- If ((chkSwapButton.Value = Checked) <> MouseInfo.MouseButtonsSwapped) And Not Initing Then
- If MsgBox("Are you sure you want to swap the buttons on your mouse?", vbYesNo + vbDefaultButton2 + vbQuestion, "Confirmation") = vbYes Then
- MouseInfo.MouseButtonsSwapped = (chkSwapButton.Value = Checked)
- Else
- ' If they change their mind, put the check box back to the appropriate
- ' value
- chkSwapButton.Value = Abs(MouseInfo.MouseButtonsSwapped)
- End If
- End If
- End Sub
- '*** CarentBlinkTime
- ' Property
- ' Read/Write
- ' This slider allows you to change the blink time of the caret. See
- ' InitKeyboardInfo() for more information.
- Private Sub sldCaretBlinkSpeed_Change()
- KeyboardInfo.CaretBlinkTime = sldCaretBlinkSpeed.Value
- ' Just rerun the InitKeyboardInfo() sub to update the caret speed.
- ' Not very efficient, and will probably get changed later, but it
- ' works for now
- InitKeyboardInfo
- End Sub
- '*** KeyboardRepeatDelay
- ' Property
- ' Read/Write
- ' This slider allows you to change the repeat delay of the keyboard. See
- ' InitKeyboardInfo() for more information.
- Private Sub sldKeyboardDelay_Change()
- KeyboardInfo.KeyboardRepeatDelay = sldKeyboardDelay.Value
- ' Just rerun the InitKeyboardInfo() sub to update the caret speed.
- ' Not very efficient, and will probably get changed later, but it
- ' works for now
- InitKeyboardInfo
- End Sub
- '*** KeyboardRepeatRate
- ' Property
- ' Read/Write
- ' This slider allows you to change the repeat rate of the keyboard. See
- ' InitKeyboardInfo() for more information.
- Private Sub sldKeyboardSpeed_Change()
- KeyboardInfo.KeyboardRepeatRate = sldKeyboardSpeed.Value
- ' Just rerun the InitKeyboardInfo() sub to update the caret speed.
- ' Not very efficient, and will probably get changed later, but it
- ' works for now
- InitKeyboardInfo
- End Sub
- '*** DoubleClickRecWidth, DoubleClickRecHeight
- ' Properties
- ' Read/Write
- ' How much movement can the mouse move between double clicks while
- ' still registering a double click event?
- ' See InitMouseInfo() for more details.
- Private Sub txtDblClickRecX_Change()
- On Error GoTo errorClickChange
- MouseInfo.DoubleClickRecWidth = CInt(txtDblClickRecX.Text)
- Exit Sub
- errorClickChange:
- txtDblClickRecX.Text = MouseInfo.DoubleClickRecWidth
- End Sub
- Private Sub txtDblClickRecY_Change()
- On Error GoTo errorClickChange
- MouseInfo.DoubleClickRecHeight = CInt(txtDblClickRecY.Text)
- Exit Sub
- errorClickChange:
- txtDblClickRecY.Text = MouseInfo.DoubleClickRecHeight
- End Sub
- Private Sub txtDblClickTime_Change()
- On Error GoTo errorClickChange
- MouseInfo.DoubleClickTime = CInt(txtDblClickTime.Text)
- Exit Sub
- errorClickChange:
- txtDblClickTime.Text = MouseInfo.DoubleClickTime
- End Sub
- '*** SystemBeep
- ' Method
- ' Parameters:
- ' WhichBeep
- ' A TLBeepType variable that says which of the standard
- ' system beeps you want to play. Below is a sample of each of the
- ' possibilities.
- Private Sub cmdPlayAsterisk_Click()
- Actions.SystemBeep TLBeep_Asterisk
- End Sub
- Private Sub cmdPlayExclamation_Click()
- Actions.SystemBeep TLBeep_Exclamation
- End Sub
- Private Sub cmdPlayOK_Click()
- Actions.SystemBeep TLBeep_OK
- End Sub
- Private Sub cmdPlayQuestion_Click()
- Actions.SystemBeep TLBeep_Question
- End Sub
- Private Sub cmdPlayStop_Click()
- Actions.SystemBeep TLBeep_Stop
- End Sub
- Private Sub cmdPlaySystem_Click()
- Actions.SystemBeep TLBeep_System
- End Sub
- ' This sub creates the double click effect that shows the arrow move around as you double click
- ' on it.
- Private Sub MouseClickPicture_DblClick()
- If MouseDoubleClickItemNumber = MouseClickImages.ListImages.Count Then
- MouseDoubleClickItemNumber = 1
- Else
- MouseDoubleClickItemNumber = MouseDoubleClickItemNumber + 1
- End If
- MouseClickPicture.Picture = MouseClickImages.ListImages(MouseDoubleClickItemNumber).Picture
- End Sub
- '****************************************************************************
- ' The following timers update info that was originally set in the appropriate
- ' Init() section. Look there for more explanations.
- ' Update the caret position
- Private Sub timerKeyboard_Timer()
- lblCaretPos.Caption = "Caret Position: " + CStr(KeyboardInfo.CaretPosx) + ", " + CStr(KeyboardInfo.CaretPosy)
- End Sub
- ' This simply recreates the memory info so that it is always as current as
- ' possible.
- Private Sub timerMemory_Timer()
- InitMemoryInfo
- End Sub
- ' Update the mouse position.
- Private Sub timerMouse_Timer()
- lblMousePos.Caption = "Current Mouse Position: " + CStr(MouseInfo.MouseX) + ", " + CStr(MouseInfo.MouseY)
- End Sub
- '****************************************************************************
- ' The below code allows a user to change various flags. All of the functionality
- ' used below is described in the appropriate Init() section, so look there for
- ' more explanation.
- ' See Note (2) if the syntax here looks odd.
- Private Sub chkFontSmoothing_Click()
- If Not Initing Then SystemInfo.FontSmoothing = (chkFontSmoothing.Value = Checked)
- End Sub
- Private Sub chkScreenSaverActive_Click()
- If Not Initing Then SystemInfo.ScreenSaverActive = (chkScreenSaverActive.Value = Checked)
- End Sub
- Private Sub chkSystemBeep_Click()
- If Not Initing Then SystemInfo.SystemBeepEnabled = (chkSystemBeep.Value = Checked)
- End Sub
- Private Sub chkFullWindowDrag_Click()
- If Not Initing Then SystemInfo.FullWindowDrag = (chkFullWindowDrag.Value = Checked)
- End Sub
- Private Sub chkShowSounds_Click()
- If Not Initing Then SystemInfo.ShowShounds = (chkShowSounds.Value = Checked)
- End Sub
- ' Although this doesn't prevent the user from changing flags like the one
- ' above, all of the functionality was described in the InitFileInfo() sub.
- ' Look there for an explaination of this method
- Private Sub cmdNewTemp_Click()
- Dim NewTempFile As String
- NewTempFile = FileInfo.GetTempFile
- lblTempFileName.Caption = "Sample Temporary File Name: " + NewTempFile
- Kill NewTempFile
- End Sub
- '****************************************************************************
- ' The below code is simply to prevent a user from clicking a checkbox and
- ' having it display an incorrect value (assuming it is a read-only value)
- Private Sub chkMousePresent_Click()
- ' This is simply to prevent anyone from changing the value of this
- ' since the property it's connected with is read-only
- chkMousePresent.Value = Abs(MouseInfo.MousePresent)
- End Sub
- Private Sub chkNetworkPresent_Click()
- ' This is simply to prevent anyone from changing the value of this
- ' since the property it's connected with is read-only
- chkNetworkPresent.Value = Abs(NetworkInfo.NetworkEnabled)
- End Sub
- Private Sub chkSecurity_Click()
- ' This is simply to prevent anyone from changing the value of this
- ' since the property it's connected with is read-only
- chkSecurity.Value = Abs(SystemInfo.SecurityPresent)
- End Sub
- Private Sub chkSlowMachine_Click()
- ' This is simply to prevent anyone from changing the value of this
- ' since the property it's connected with is read-only
- chkSlowMachine.Value = Abs(SystemInfo.SlowMachine)
- End Sub
- Private Sub chkWheelPresent_Click()
- ' This is simply to prevent anyone from changing the value of this
- ' since the property it's connected with is read-only
- chkWheelPresent.Value = Abs(MouseInfo.MouseWheelPresent)
- End Sub
- '*************************************************************************
- ' Need this button in case you try the "Disable X" button :)
- Private Sub cmdQuit_Click()
- Unload Me
- End Sub
-